package com.eascs.banknet.boc.net;

import java.io.ByteArrayInputStream;
import java.util.List;

import com.eascs.banknet.boc.vo.FtpFileTemplage;
import com.eascs.banknet.common.entity.DataListEntity;
import com.eascs.banknet.common.vo.ServerInfo;

/**
 * 中行交互接口
 * @author user
 *
 */
public interface BOCNetService {
	/**
	 * socket通信
	 * @param map
	 * @param type
	 * @param content
	 * @return
	 */
	public String executeSocket(ServerInfo serverInfo, String type,String appno, String content) throws Exception;
	
	/**
	 * 中行ftp文件下载
	 * @param bocFtpInfo
	 * @param eaFtpInfo
	 * @param fromPath
	 * @param toPath
	 * @return
	 */
	public boolean getFtpAttachment(FtpFileTemplage ftpFile, String appno, String loanapplyNo, String bankOsn) throws Exception;
	
	/**
	 * 中转FTP文件上传
	 * @param bocFtpInfo
	 * @param eaFtpInfo
	 * @param appno
	 * @param fileList
	 * @return
	 */
	public boolean sendFtpAttachment(String appno, List<DataListEntity> fileList) throws Exception;

	public ByteArrayInputStream readFtpFile(ServerInfo serverInfo, String remotePath, String fileName);
}
